package com.example.riceexambackend.common.errorcode;

/**
 * controller层错误码常量
 */
public interface ControllerErrorCodeConstants {
    // ===== 用户模块异常 =====
    ErrorCode USER_REGISTER_ERROR = new ErrorCode(100, "用户注册失败!");
    ErrorCode USER_LOGIN_ERROR = new ErrorCode(101, "用户登录失败!");
    ErrorCode USER_CURRENT_ERROR = new ErrorCode(102, "获取当前登录用户失败!");
    // ===== 验证码模块异常 =====
    ErrorCode USER_VERIFY_CODE_PHONE_ERROR = new ErrorCode(200, "用户验证模块手机号格式错误!");
    // ===== 题型模块异常 =====
    ErrorCode QUESTION_TYPE_ADD_ERROR = new ErrorCode(300, "题型模块新增错误!");
    ErrorCode QUESTION_TYPE_SELECT_ALL_ERROR = new ErrorCode(301, "题型模块查询全部错误!");
    ErrorCode QUESTION_TYPE_UPDATE_ERROR = new ErrorCode(302, "题型模块修改错误!");
    ErrorCode QUESTION_TYPE_DELETE_ERROR = new ErrorCode(303, "题型模块删除错误!");

    // ===== 题目模块异常 =====
    ErrorCode QUESTION_ADD_ERROR = new ErrorCode(400, "题目模块新增错误!");
    ErrorCode QUESTION_SELECT_ALL_ERROR = new ErrorCode(401, "题目模块查询全部错误!");
    // ===== 考试模块异常 =====
    ErrorCode EXAM_ADD_ERROR = new ErrorCode(500, "考试模块新增错误!");
    ErrorCode EXAM_SELECT_ALL_ERROR = new ErrorCode(501, "考试模块查询全部错误!");
    ErrorCode EXAM_AUTO_ERROR = new ErrorCode(502, "考试模块自动组卷错误!");
    ErrorCode EXAM_VIEW_ERROR = new ErrorCode(503, "考试模块查看试卷错误!");
    ErrorCode EXAM_ATTEND_ERROR = new ErrorCode(504, "考试模块参加考试错误!");
    ErrorCode EXAM_SUBMIT_ERROR = new ErrorCode(505, "考试模块提交试卷错误!");

}
